﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace P2PTransmit.ViewModal.Command
{
    public class ICommandBase : System.Windows.Input.ICommand
    {
        public event EventHandler CanExecuteChanged{
            add{
                System.Windows.Input.CommandManager.RequerySuggested+=value;
            }
            remove{
                System.Windows.Input.CommandManager.RequerySuggested-=value;
            }
        }

        public virtual bool CanExecute(object parameter)
        {
            return true;
        }

        public  virtual void Execute(object parameter)
        {
            
        }
    }
}
